import mockjs from 'mockjs';

export default {
  'GET /api/daas/dvas/v1/mortgage/list': mockjs.mock({
    code: '0000',
    message: '操作成功',
    result: {
      current: 1,
      pages: 1,
      'records|100': [
        {
          advancePayConfigId: '@id',
          alreadyAmount: '@natural(0,50)',
          amount: '@float(0,10000,1,3)',
          applyBy: '@name',
          applyTime: "@date('YYYY-MM-DD HH:mm:ss')",
          approvalTime: "@date('YYYY-MM-DD HH:mm:ss')",
          approveBy: '@name',
          assertNo: '@id',
          availableAmount: '@natural(0,100)',
          companyName: '@name',
          companyRecordId: '@id',
          consumerName: '@name',
          createBy: '@name',
          createTime: "@date('YYYY-MM-DD HH:mm:ss')",
          days: '@integer(-10,30)',
          enterpriseAuditingPassBy: '@name',
          enterpriseAuditingRejectBy: '@name',
          fee: '@float(-100, 300)',
          fundName: '@name',
          fundRecordId: '@id',
          isAudit: '@pick([true, false])',
          loanAmount: '@natural(10,100)',
          mortgageApplyDate: "@date('YYYY-MM-DD HH:mm:ss')",
          mortgageRecordId: '@natural(100,3000)',
          mortgageStartDate: '@date(YYYY-MM-DD)',
          operateBy: '@name',
          payDate: '@date(YYYY-MM-DD)',
          productCode: "@pick(['quickPay'])",
          productName: '@name',
          productRecordId: '@id',
          purchaserCompanyName: '@name',
          purchaserName: '@name',
          settlementAmount: '@natural(0,300)',
          settlementId: '@id',
          settlementNo: '@id',
          status: '@pick([0,1,2,3,4,5,6,7,8])',
          statusDesc: "@pick(['未放款','已放款'])",
          step: '@natural(0,10)',
          stepList: '@id',
          supplierCommitBy: '@name',
          tenantRecordId: '@natural(1,1000)',
          transType: '@pick([1,2])',
        },
      ],
      searchColunt: '@pick([true])',
      size: 10,
      total: 100,
    },
  }),
};
